package com.accenture.training.dao;

import java.util.ArrayList;
import java.util.List;

import com.accenture.training.domain.Client;
import com.accenture.training.service.ClientDAO;

import javax.sql.DataSource;

//import org.springframework.jdbc.core.JdbcTemplate;

public class ClientDAOList implements ClientDAO {
//	private DataSource dataSource;
//	private JdbcTemplate jdbcTemplateObject;
	List <Client> clients;

	public void setDataSource(DataSource dataSource) {
//		this.dataSource = dataSource;
//		this.jdbcTemplateObject = new JdbcTemplate(dataSource);
	}

	public void addClient(String name, Integer age) {
//		String SQL = "insert into Client (name, age) values (?, ?)";
//		jdbcTemplateObject.update(SQL, name, age);
//		System.out.println("Created Record Name = " + name + " Age = " + age);
//		return;
	}

	public List<Client> listAll() {
//		String SQL = "select * from Student";
//		clients = jdbcTemplateObject.query(SQL, new ClientMapper());
	    return new ArrayList<Client>();
	}

}
